package com.itheima.j2cache.anno;

import com.itheima.j2cache.aop.CacheMethodInterceptor;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * 开启声明式缓存功能
 *
 * @author llhuang10
 * @date 2021/10/8 9:04
 */
@Documented
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import(CacheMethodInterceptor.class)
public @interface EnableCache {
}
